<template>
	<div class="add-jq-dialog">
		<!--操作日志-->
		
		
		<appdialog 
			ref="dialog"
			:visible="false" 
			title="操作日志"
			@confirm="confirmAdd"
			@cancle="cancleAdd"
			width="50%"
			>
		  <div
      style="background:#000;
      height:330px;
      display:block;
      word-break:break-all;
      word-wrap: break-word;
      padding:5px;
      color:#fff;
      overflow-y: auto;
      margin-left:4px;">
          <code v-for="item in logList" :key="item.index">{{item}}</code>
      </div>
		</appdialog>
		
		
		
	</div>
</template>

<script>
import appdialog from "@/view/components/dialog/dialog";

export default {
  name: "logDialog",
  // props:[
  //   "logList"
  // ],
  components: {
    appdialog,
  },
  data() {
    return {
      logList:[],
    }
  },
  mounted() {},
  methods: {
    open(data) {
      this.logList = data
      this.$refs.dialog.open();
    },
    close(){
      this.logList = []
      this.$refs.dialog.close();
    },

    confirmAdd() {
      this.close();
    },
    cancleAdd() {
      this.logList = []
    }
  }
};
</script>

<style scoped lang="scss">
@import "../../../styles/variables.scss";
span{
  
}
</style>